﻿using DLL;
using gregn6Lib;
using NursingFormSystem.Common;
using NursingFormSystem.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NursingFormSystem.HealthEducationRSFNU
{
    public partial class PrintHealthEducationRSFNU : Form
    {
        #region 变量声明
        private GridppReport Report = new GridppReport();
        NurFormsService.NursingForm formService = new NurFormsService.NursingForm();
        PatientInfo PatientInfo;
        Tb_User LoginUser;
        string Id = string.Empty;
        #endregion

        #region 构造函数
        public PrintHealthEducationRSFNU(Tb_User loginUser, PatientInfo patientInfo, string id)
        {
            InitializeComponent();
            PatientInfo = patientInfo;
            LoginUser = loginUser;
            this.Id = id;
            //载入报表模板数据
            Report.LoadFromFile(System.Windows.Forms.Application.StartupPath + @"\GRFModel\Ydhl_GRF\新生儿病房健康教育记录单(对家属).grf");
            //设置与数据源的连接串，因为在设计时指定的数据库路径是绝对路径。
            Report.ConnectionString = Utility.GetDatabaseConnectionString();
            //连接报表取数事件
            Report.FetchRecord += new _IGridppReportEvents_FetchRecordEventHandler(ReportFetchRecord);
            //设定查询显示器关联的报表
            axGRPrintViewer1.Report = Report;
        }
        #endregion

        public void ReportFetchRecord()
        {
            string sql = string.Format(" SELECT AssessmentDate FROM NursingFormRecord(NOLOCK) WHERE Id='{0}' ", this.Id );
            object assessmentDate = SqlHelper.ExecuteScalar(sql);
            if (assessmentDate == DBNull.Value) return;
            if (assessmentDate == null) return;
            if (string.IsNullOrEmpty(assessmentDate.ToString())) return;
            DateTime datetime = Convert.ToDateTime(assessmentDate);
            var ret = formService.GetNursingFormRecordByDate(PatientInfo.PATIENT_ID, PatientInfo.VISIT_ID, (int)FormType.HealthERecordBaby, datetime, datetime);
            DataTable dt = new DataTable();
            if (ret.Code == 1)
            {
                List<NursingFormRecord> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<NursingFormRecord>>(ret.D);
                if (!string.IsNullOrEmpty(this.Id))
                    list = list.Where(p => p.Id.Equals(Convert.ToInt32(this.Id))).ToList();
                CreateDataTableHead(dt);
                for (int i = 0; i < list.Count; i++)
                {
                    NursingFormRecord record = list[i];
                    HERSFNU her = XmlUtil.XMLToObject<HERSFNU>(record.NursingFormData, Encoding.UTF8);
                    dt.Rows.Add(
                        PatientInfo.PATIENT_NAME,   //患者姓名
                        PatientInfo.SEX,   //性别
                        PatientInfo.AGE,   //年龄
                        PatientInfo.NURSE_CELL_NAME,   //病区
                        PatientInfo.DEPARTMENT_NAME,    //科室
                        PatientInfo.BED_NO,    //床号
                        PatientInfo.PATIENT_ID,   //住院号

                    #region 入院宣教
                        //1、介绍责任护士、经管医生。
                        her.RuYuan_JieShaoZeRen.Split('#')[0],
                        her.RuYuan_JieShaoZeRen.Split('#')[1],
                        her.RuYuan_JieShaoZeRen.Split('#')[2],
                        her.RuYuan_JieShaoZeRen.Split('#')[3],
                        her.RuYuan_JieShaoZeRen.Split('#')[4],
                        her.RuYuan_JieShaoZeRen.Split('#')[5],
                        her.RuYuan_JieShaoZeRen.Split('#')[6],
                        her.RuYuan_JieShaoZeRen.Split('#')[7],
                        her.RuYuan_JieShaoZeRen.Split('#')[8],
                        //2、介绍住院须知内容。
                        her.RuYuan_JieShaoZhuYuan.Split('#')[0],
                        her.RuYuan_JieShaoZhuYuan.Split('#')[1],
                        her.RuYuan_JieShaoZhuYuan.Split('#')[2],
                        her.RuYuan_JieShaoZhuYuan.Split('#')[3],
                        her.RuYuan_JieShaoZhuYuan.Split('#')[4],
                        her.RuYuan_JieShaoZhuYuan.Split('#')[5],
                        her.RuYuan_JieShaoZhuYuan.Split('#')[6],
                        her.RuYuan_JieShaoZhuYuan.Split('#')[7],
                        her.RuYuan_JieShaoZhuYuan.Split('#')[8],
                        //3、介绍探视制度、病室环境。
                        her.RuYuan_JieShaoTanShi.Split('#')[0],
                        her.RuYuan_JieShaoTanShi.Split('#')[1],
                        her.RuYuan_JieShaoTanShi.Split('#')[2],
                        her.RuYuan_JieShaoTanShi.Split('#')[3],
                        her.RuYuan_JieShaoTanShi.Split('#')[4],
                        her.RuYuan_JieShaoTanShi.Split('#')[5],
                        her.RuYuan_JieShaoTanShi.Split('#')[6],
                        her.RuYuan_JieShaoTanShi.Split('#')[7],
                        her.RuYuan_JieShaoTanShi.Split('#')[8],
                        //4、介绍专科疾病知识。
                        her.RuYuan_JieShaoZhuanKe.Split('#')[0],
                        her.RuYuan_JieShaoZhuanKe.Split('#')[1],
                        her.RuYuan_JieShaoZhuanKe.Split('#')[2],
                        her.RuYuan_JieShaoZhuanKe.Split('#')[3],
                        her.RuYuan_JieShaoZhuanKe.Split('#')[4],
                        her.RuYuan_JieShaoZhuanKe.Split('#')[5],
                        her.RuYuan_JieShaoZhuanKe.Split('#')[6],
                        her.RuYuan_JieShaoZhuanKe.Split('#')[7],
                        her.RuYuan_JieShaoZhuanKe.Split('#')[8],
                        //5、告知保持联系电话通畅，便于及时联系。
                        her.RuYuan_GaoZhiBaoChi.Split('#')[0],
                        her.RuYuan_GaoZhiBaoChi.Split('#')[1],
                        her.RuYuan_GaoZhiBaoChi.Split('#')[2],
                        her.RuYuan_GaoZhiBaoChi.Split('#')[3],
                        her.RuYuan_GaoZhiBaoChi.Split('#')[4],
                        her.RuYuan_GaoZhiBaoChi.Split('#')[5],
                        her.RuYuan_GaoZhiBaoChi.Split('#')[6],
                        her.RuYuan_GaoZhiBaoChi.Split('#')[7],
                        her.RuYuan_GaoZhiBaoChi.Split('#')[8],
                        //6、告知送母乳的时间及注意事项。
                        her.RuYuan_GaoZhiSongMu.Split('#')[0],
                        her.RuYuan_GaoZhiSongMu.Split('#')[1],
                        her.RuYuan_GaoZhiSongMu.Split('#')[2],
                        her.RuYuan_GaoZhiSongMu.Split('#')[3],
                        her.RuYuan_GaoZhiSongMu.Split('#')[4],
                        her.RuYuan_GaoZhiSongMu.Split('#')[5],
                        her.RuYuan_GaoZhiSongMu.Split('#')[6],
                        her.RuYuan_GaoZhiSongMu.Split('#')[7],
                        her.RuYuan_GaoZhiSongMu.Split('#')[8],
                    #endregion

                    #region 住院期间健康教育
                        //1、告知用药知识及治疗注意事项。
                        her.ZhuYuan_GaoZhiYongYao.Split('#')[0],
                        her.ZhuYuan_GaoZhiYongYao.Split('#')[1],
                        her.ZhuYuan_GaoZhiYongYao.Split('#')[2],
                        her.ZhuYuan_GaoZhiYongYao.Split('#')[3],
                        her.ZhuYuan_GaoZhiYongYao.Split('#')[4],
                        her.ZhuYuan_GaoZhiYongYao.Split('#')[5],
                        her.ZhuYuan_GaoZhiYongYao.Split('#')[6],
                        her.ZhuYuan_GaoZhiYongYao.Split('#')[7],
                        her.ZhuYuan_GaoZhiYongYao.Split('#')[8],
                        //2、告知预后及可能出现的并发症。
                        her.ZhuYuan_GaoZhiYuHou.Split('#')[0],
                        her.ZhuYuan_GaoZhiYuHou.Split('#')[1],
                        her.ZhuYuan_GaoZhiYuHou.Split('#')[2],
                        her.ZhuYuan_GaoZhiYuHou.Split('#')[3],
                        her.ZhuYuan_GaoZhiYuHou.Split('#')[4],
                        her.ZhuYuan_GaoZhiYuHou.Split('#')[5],
                        her.ZhuYuan_GaoZhiYuHou.Split('#')[6],
                        her.ZhuYuan_GaoZhiYuHou.Split('#')[7],
                        her.ZhuYuan_GaoZhiYuHou.Split('#')[8],
                        //3、探视时进行专科疾病知识指导。
                        her.ZhuYuan_TanShiShiJin.Split('#')[0],
                        her.ZhuYuan_TanShiShiJin.Split('#')[1],
                        her.ZhuYuan_TanShiShiJin.Split('#')[2],
                        her.ZhuYuan_TanShiShiJin.Split('#')[3],
                        her.ZhuYuan_TanShiShiJin.Split('#')[4],
                        her.ZhuYuan_TanShiShiJin.Split('#')[5],
                        her.ZhuYuan_TanShiShiJin.Split('#')[6],
                        her.ZhuYuan_TanShiShiJin.Split('#')[7],
                        her.ZhuYuan_TanShiShiJin.Split('#')[8],
                        //4、告知饮食情况及体重增长情况。
                        her.ZhuYuan_GaoZhiYinShi.Split('#')[0],
                        her.ZhuYuan_GaoZhiYinShi.Split('#')[1],
                        her.ZhuYuan_GaoZhiYinShi.Split('#')[2],
                        her.ZhuYuan_GaoZhiYinShi.Split('#')[3],
                        her.ZhuYuan_GaoZhiYinShi.Split('#')[4],
                        her.ZhuYuan_GaoZhiYinShi.Split('#')[5],
                        her.ZhuYuan_GaoZhiYinShi.Split('#')[6],
                        her.ZhuYuan_GaoZhiYinShi.Split('#')[7],
                        her.ZhuYuan_GaoZhiYinShi.Split('#')[8],
                        //5、检查前后指导。
                        her.ZhuYuan_JianChaQianHou.Split('#')[0],
                        her.ZhuYuan_JianChaQianHou.Split('#')[1],
                        her.ZhuYuan_JianChaQianHou.Split('#')[2],
                        her.ZhuYuan_JianChaQianHou.Split('#')[3],
                        her.ZhuYuan_JianChaQianHou.Split('#')[4],
                        her.ZhuYuan_JianChaQianHou.Split('#')[5],
                        her.ZhuYuan_JianChaQianHou.Split('#')[6],
                        her.ZhuYuan_JianChaQianHou.Split('#')[7],
                        her.ZhuYuan_JianChaQianHou.Split('#')[8],
                        //6、告知氧疗知识、必要性及潜在的并发症。
                        her.ZhuYuan_GaoZhiYangLiao.Split('#')[0],
                        her.ZhuYuan_GaoZhiYangLiao.Split('#')[1],
                        her.ZhuYuan_GaoZhiYangLiao.Split('#')[2],
                        her.ZhuYuan_GaoZhiYangLiao.Split('#')[3],
                        her.ZhuYuan_GaoZhiYangLiao.Split('#')[4],
                        her.ZhuYuan_GaoZhiYangLiao.Split('#')[5],
                        her.ZhuYuan_GaoZhiYangLiao.Split('#')[6],
                        her.ZhuYuan_GaoZhiYangLiao.Split('#')[7],
                        her.ZhuYuan_GaoZhiYangLiao.Split('#')[8],
                        //7、有创操作相关知识告知。
                        her.ZhuYuan_YouChuangCaoZuo.Split('#')[0],
                        her.ZhuYuan_YouChuangCaoZuo.Split('#')[1],
                        her.ZhuYuan_YouChuangCaoZuo.Split('#')[2],
                        her.ZhuYuan_YouChuangCaoZuo.Split('#')[3],
                        her.ZhuYuan_YouChuangCaoZuo.Split('#')[4],
                        her.ZhuYuan_YouChuangCaoZuo.Split('#')[5],
                        her.ZhuYuan_YouChuangCaoZuo.Split('#')[5],
                        her.ZhuYuan_YouChuangCaoZuo.Split('#')[7],
                        her.ZhuYuan_YouChuangCaoZuo.Split('#')[8],
                    #endregion

                    #region 出院健康教育
                        //1、告知出院结账手续办理流程。
                        her.ChuYuan_GaoZhiChuYuan.Split('#')[0],
                        her.ChuYuan_GaoZhiChuYuan.Split('#')[1],
                        her.ChuYuan_GaoZhiChuYuan.Split('#')[2],
                        her.ChuYuan_GaoZhiChuYuan.Split('#')[3],
                        her.ChuYuan_GaoZhiChuYuan.Split('#')[4],
                        her.ChuYuan_GaoZhiChuYuan.Split('#')[5],
                        her.ChuYuan_GaoZhiChuYuan.Split('#')[6],
                        her.ChuYuan_GaoZhiChuYuan.Split('#')[7],
                        her.ChuYuan_GaoZhiChuYuan.Split('#')[8],
                        //2、专科护理及康复知识指导。
                        her.ChuYuan_ZhuanKeHuLi.Split('#')[0],
                        her.ChuYuan_ZhuanKeHuLi.Split('#')[1],
                        her.ChuYuan_ZhuanKeHuLi.Split('#')[2],
                        her.ChuYuan_ZhuanKeHuLi.Split('#')[3],
                        her.ChuYuan_ZhuanKeHuLi.Split('#')[4],
                        her.ChuYuan_ZhuanKeHuLi.Split('#')[5],
                        her.ChuYuan_ZhuanKeHuLi.Split('#')[6],
                        her.ChuYuan_ZhuanKeHuLi.Split('#')[7],
                        her.ChuYuan_ZhuanKeHuLi.Split('#')[8],
                        //3、告知喂养知识，鼓励母乳喂养，及时添加辅食。
                        her.ChuYuan_GaoZhiWeiYang.Split('#')[0],
                        her.ChuYuan_GaoZhiWeiYang.Split('#')[1],
                        her.ChuYuan_GaoZhiWeiYang.Split('#')[2],
                        her.ChuYuan_GaoZhiWeiYang.Split('#')[3],
                        her.ChuYuan_GaoZhiWeiYang.Split('#')[4],
                        her.ChuYuan_GaoZhiWeiYang.Split('#')[5],
                        her.ChuYuan_GaoZhiWeiYang.Split('#')[6],
                        her.ChuYuan_GaoZhiWeiYang.Split('#')[7],
                        her.ChuYuan_GaoZhiWeiYang.Split('#')[8],
                        //4、告知保持皮肤及脐部清洁干燥，发现异常，及时就诊。
                        her.ChuYuan_GaoZhiBaoChi.Split('#')[0],
                        her.ChuYuan_GaoZhiBaoChi.Split('#')[1],
                        her.ChuYuan_GaoZhiBaoChi.Split('#')[2],
                        her.ChuYuan_GaoZhiBaoChi.Split('#')[3],
                        her.ChuYuan_GaoZhiBaoChi.Split('#')[4],
                        her.ChuYuan_GaoZhiBaoChi.Split('#')[5],
                        her.ChuYuan_GaoZhiBaoChi.Split('#')[6],
                        her.ChuYuan_GaoZhiBaoChi.Split('#')[7],
                        her.ChuYuan_GaoZhiBaoChi.Split('#')[8],
                        //5、告知预防感染的相关知识。
                        her.ChuYuan_GaoZhiYuFang.Split('#')[0],
                        her.ChuYuan_GaoZhiYuFang.Split('#')[1],
                        her.ChuYuan_GaoZhiYuFang.Split('#')[2],
                        her.ChuYuan_GaoZhiYuFang.Split('#')[3],
                        her.ChuYuan_GaoZhiYuFang.Split('#')[4],
                        her.ChuYuan_GaoZhiYuFang.Split('#')[5],
                        her.ChuYuan_GaoZhiYuFang.Split('#')[6],
                        her.ChuYuan_GaoZhiYuFang.Split('#')[7],
                        her.ChuYuan_GaoZhiYuFang.Split('#')[8],
                        //6、引流管知识指导。
                        her.ChuYuan_YinLiuGuanZhi.Split('#')[0],
                        her.ChuYuan_YinLiuGuanZhi.Split('#')[1],
                        her.ChuYuan_YinLiuGuanZhi.Split('#')[2],
                        her.ChuYuan_YinLiuGuanZhi.Split('#')[3],
                        her.ChuYuan_YinLiuGuanZhi.Split('#')[4],
                        her.ChuYuan_YinLiuGuanZhi.Split('#')[5],
                        her.ChuYuan_YinLiuGuanZhi.Split('#')[6],
                        her.ChuYuan_YinLiuGuanZhi.Split('#')[7],
                        her.ChuYuan_YinLiuGuanZhi.Split('#')[8],
                        //7、出院带药的用法、注意事项。
                        her.ChuYuan_ChuYuanDaiYao.Split('#')[0],
                        her.ChuYuan_ChuYuanDaiYao.Split('#')[1],
                        her.ChuYuan_ChuYuanDaiYao.Split('#')[2],
                        her.ChuYuan_ChuYuanDaiYao.Split('#')[3],
                        her.ChuYuan_ChuYuanDaiYao.Split('#')[4],
                        her.ChuYuan_ChuYuanDaiYao.Split('#')[5],
                        her.ChuYuan_ChuYuanDaiYao.Split('#')[6],
                        her.ChuYuan_ChuYuanDaiYao.Split('#')[7],
                        her.ChuYuan_ChuYuanDaiYao.Split('#')[8],
                        //8、告知随访时间及随访的重要性。
                        her.ChuYuan_GaoZhiSuiFang.Split('#')[0],
                        her.ChuYuan_GaoZhiSuiFang.Split('#')[1],
                        her.ChuYuan_GaoZhiSuiFang.Split('#')[2],
                        her.ChuYuan_GaoZhiSuiFang.Split('#')[3],
                        her.ChuYuan_GaoZhiSuiFang.Split('#')[4],
                        her.ChuYuan_GaoZhiSuiFang.Split('#')[5],
                        her.ChuYuan_GaoZhiSuiFang.Split('#')[6],
                        her.ChuYuan_GaoZhiSuiFang.Split('#')[7],
                        her.ChuYuan_GaoZhiSuiFang.Split('#')[8],
                        //9、按期预防接种和儿保体检。 
                        her.ChuYuan_AnQiYuFang.Split('#')[0],
                        her.ChuYuan_AnQiYuFang.Split('#')[1],
                        her.ChuYuan_AnQiYuFang.Split('#')[2],
                        her.ChuYuan_AnQiYuFang.Split('#')[3],
                        her.ChuYuan_AnQiYuFang.Split('#')[4],
                        her.ChuYuan_AnQiYuFang.Split('#')[5],
                        her.ChuYuan_AnQiYuFang.Split('#')[6],
                        her.ChuYuan_AnQiYuFang.Split('#')[7],
                        her.ChuYuan_AnQiYuFang.Split('#')[8]
                    #endregion

);
                }
                Utility.FillRecordToReport(Report, dt);
            }
            else if (ret.Code == 2)
            {
                CreateDataTableHead(dt);
                DataRow dr = dt.NewRow();
                dt.Rows.Add(dr);
                Utility.FillRecordToReport(Report, dt);
            }
            else if (ret.Code == 0)
            {
                MessageBox.Show(ret.M);
            }
        }

        #region 加载列头
        private void CreateDataTableHead(DataTable dt)
        {
            dt.Columns.Add("PATIENT_NAME", typeof(string));   //患者姓名
            dt.Columns.Add("SEX", typeof(string));    //性别
            dt.Columns.Add("Age", typeof(string));    //年龄
            dt.Columns.Add("NURSE_CELL_NAME", typeof(string));     //病区
            dt.Columns.Add("DEPARTMENT_NAME", typeof(string));     //科室
            dt.Columns.Add("BED_NO", typeof(string));         //床号
            dt.Columns.Add("PATIENT_ID", typeof(string));     //住院号

            #region 入院宣教
            //1、介绍责任护士、经管医生。
            dt.Columns.Add("RuYuan_JieShaoZeRen_0", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZeRen_1", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZeRen_2", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZeRen_3", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZeRen_4", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZeRen_5", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZeRen_6", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZeRen_7", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZeRen_8", typeof(string));
            //2、介绍住院须知内容。
            dt.Columns.Add("RuYuan_JieShaoZhuYuan_0", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZhuYuan_1", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZhuYuan_2", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZhuYuan_3", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZhuYuan_4", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZhuYuan_5", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZhuYuan_6", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZhuYuan_7", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZhuYuan_8", typeof(string));
            //3、介绍探视制度、病室环境。
            dt.Columns.Add("RuYuan_JieShaoTanShi_0", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoTanShi_1", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoTanShi_2", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoTanShi_3", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoTanShi_4", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoTanShi_5", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoTanShi_6", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoTanShi_7", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoTanShi_8", typeof(string));
            //4、介绍专科疾病知识。
            dt.Columns.Add("RuYuan_JieShaoZhuanKe_0", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZhuanKe_1", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZhuanKe_2", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZhuanKe_3", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZhuanKe_4", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZhuanKe_5", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZhuanKe_6", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZhuanKe_7", typeof(string));
            dt.Columns.Add("RuYuan_JieShaoZhuanKe_8", typeof(string));
            //5、告知保持联系电话通畅，便于及时联系。
            dt.Columns.Add("RuYuan_GaoZhiBaoChi_0", typeof(string));
            dt.Columns.Add("RuYuan_GaoZhiBaoChi_1", typeof(string));
            dt.Columns.Add("RuYuan_GaoZhiBaoChi_2", typeof(string));
            dt.Columns.Add("RuYuan_GaoZhiBaoChi_3", typeof(string));
            dt.Columns.Add("RuYuan_GaoZhiBaoChi_4", typeof(string));
            dt.Columns.Add("RuYuan_GaoZhiBaoChi_5", typeof(string));
            dt.Columns.Add("RuYuan_GaoZhiBaoChi_6", typeof(string));
            dt.Columns.Add("RuYuan_GaoZhiBaoChi_7", typeof(string));
            dt.Columns.Add("RuYuan_GaoZhiBaoChi_8", typeof(string));
            //6、告知送母乳的时间及注意事项。
            dt.Columns.Add("RuYuan_GaoZhiSongMu_0", typeof(string));
            dt.Columns.Add("RuYuan_GaoZhiSongMu_1", typeof(string));
            dt.Columns.Add("RuYuan_GaoZhiSongMu_2", typeof(string));
            dt.Columns.Add("RuYuan_GaoZhiSongMu_3", typeof(string));
            dt.Columns.Add("RuYuan_GaoZhiSongMu_4", typeof(string));
            dt.Columns.Add("RuYuan_GaoZhiSongMu_5", typeof(string));
            dt.Columns.Add("RuYuan_GaoZhiSongMu_6", typeof(string));
            dt.Columns.Add("RuYuan_GaoZhiSongMu_7", typeof(string));
            dt.Columns.Add("RuYuan_GaoZhiSongMu_8", typeof(string));
            #endregion

            #region 住院期间健康教育
            //1、告知用药知识及治疗注意事项。
            dt.Columns.Add("ZhuYuan_GaoZhiYongYao_0", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYongYao_1", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYongYao_2", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYongYao_3", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYongYao_4", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYongYao_5", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYongYao_6", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYongYao_7", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYongYao_8", typeof(string));
            //2、告知预后及可能出现的并发症。
            dt.Columns.Add("ZhuYuan_GaoZhiYuHou_0", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYuHou_1", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYuHou_2", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYuHou_3", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYuHou_4", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYuHou_5", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYuHou_6", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYuHou_7", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYuHou_8", typeof(string));
            //3、探视时进行专科疾病知识指导。
            dt.Columns.Add("ZhuYuan_TanShiShiJin_0", typeof(string));
            dt.Columns.Add("ZhuYuan_TanShiShiJin_1", typeof(string));
            dt.Columns.Add("ZhuYuan_TanShiShiJin_2", typeof(string));
            dt.Columns.Add("ZhuYuan_TanShiShiJin_3", typeof(string));
            dt.Columns.Add("ZhuYuan_TanShiShiJin_4", typeof(string));
            dt.Columns.Add("ZhuYuan_TanShiShiJin_5", typeof(string));
            dt.Columns.Add("ZhuYuan_TanShiShiJin_6", typeof(string));
            dt.Columns.Add("ZhuYuan_TanShiShiJin_7", typeof(string));
            dt.Columns.Add("ZhuYuan_TanShiShiJin_8", typeof(string));
            //4、告知饮食情况及体重增长情况。
            dt.Columns.Add("ZhuYuan_GaoZhiYinShi_0", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYinShi_1", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYinShi_2", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYinShi_3", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYinShi_4", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYinShi_5", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYinShi_6", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYinShi_7", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYinShi_8", typeof(string));
            //5、检查前后指导。
            dt.Columns.Add("ZhuYuan_JianChaQianHou_0", typeof(string));
            dt.Columns.Add("ZhuYuan_JianChaQianHou_1", typeof(string));
            dt.Columns.Add("ZhuYuan_JianChaQianHou_2", typeof(string));
            dt.Columns.Add("ZhuYuan_JianChaQianHou_3", typeof(string));
            dt.Columns.Add("ZhuYuan_JianChaQianHou_4", typeof(string));
            dt.Columns.Add("ZhuYuan_JianChaQianHou_5", typeof(string));
            dt.Columns.Add("ZhuYuan_JianChaQianHou_6", typeof(string));
            dt.Columns.Add("ZhuYuan_JianChaQianHou_7", typeof(string));
            dt.Columns.Add("ZhuYuan_JianChaQianHou_8", typeof(string));
            //6、告知氧疗知识、必要性及潜在的并发症。
            dt.Columns.Add("ZhuYuan_GaoZhiYangLiao_0", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYangLiao_1", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYangLiao_2", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYangLiao_3", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYangLiao_4", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYangLiao_5", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYangLiao_6", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYangLiao_7", typeof(string));
            dt.Columns.Add("ZhuYuan_GaoZhiYangLiao_8", typeof(string));
            //7、有创操作相关知识告知。
            dt.Columns.Add("ZhuYuan_YouChuangCaoZuo_0", typeof(string));
            dt.Columns.Add("ZhuYuan_YouChuangCaoZuo_1", typeof(string));
            dt.Columns.Add("ZhuYuan_YouChuangCaoZuo_2", typeof(string));
            dt.Columns.Add("ZhuYuan_YouChuangCaoZuo_3", typeof(string));
            dt.Columns.Add("ZhuYuan_YouChuangCaoZuo_4", typeof(string));
            dt.Columns.Add("ZhuYuan_YouChuangCaoZuo_5", typeof(string));
            dt.Columns.Add("ZhuYuan_YouChuangCaoZuo_6", typeof(string));
            dt.Columns.Add("ZhuYuan_YouChuangCaoZuo_7", typeof(string));
            dt.Columns.Add("ZhuYuan_YouChuangCaoZuo_8", typeof(string));
            #endregion

            #region 出院健康教育
            //1、告知出院结账手续办理流程。
            dt.Columns.Add("ChuYuan_GaoZhiChuYuan_0", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiChuYuan_1", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiChuYuan_2", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiChuYuan_3", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiChuYuan_4", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiChuYuan_5", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiChuYuan_6", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiChuYuan_7", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiChuYuan_8", typeof(string));
            //2、专科护理及康复知识指导。
            dt.Columns.Add("ChuYuan_ZhuanKeHuLi_0", typeof(string));
            dt.Columns.Add("ChuYuan_ZhuanKeHuLi_1", typeof(string));
            dt.Columns.Add("ChuYuan_ZhuanKeHuLi_2", typeof(string));
            dt.Columns.Add("ChuYuan_ZhuanKeHuLi_3", typeof(string));
            dt.Columns.Add("ChuYuan_ZhuanKeHuLi_4", typeof(string));
            dt.Columns.Add("ChuYuan_ZhuanKeHuLi_5", typeof(string));
            dt.Columns.Add("ChuYuan_ZhuanKeHuLi_6", typeof(string));
            dt.Columns.Add("ChuYuan_ZhuanKeHuLi_7", typeof(string));
            dt.Columns.Add("ChuYuan_ZhuanKeHuLi_8", typeof(string));
            //3、告知喂养知识，鼓励母乳喂养，及时添加辅食。
            dt.Columns.Add("ChuYuan_GaoZhiWeiYang_0", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiWeiYang_1", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiWeiYang_2", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiWeiYang_3", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiWeiYang_4", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiWeiYang_5", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiWeiYang_6", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiWeiYang_7", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiWeiYang_8", typeof(string));
            //4、告知保持皮肤及脐部清洁干燥，发现异常，及时就诊。
            dt.Columns.Add("ChuYuan_GaoZhiBaoChi_0", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiBaoChi_1", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiBaoChi_2", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiBaoChi_3", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiBaoChi_4", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiBaoChi_5", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiBaoChi_6", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiBaoChi_7", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiBaoChi_8", typeof(string));
            //5、告知预防感染的相关知识。
            dt.Columns.Add("ChuYuan_GaoZhiYuFang_0", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiYuFang_1", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiYuFang_2", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiYuFang_3", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiYuFang_4", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiYuFang_5", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiYuFang_6", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiYuFang_7", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiYuFang_8", typeof(string));
            //6、引流管知识指导。
            dt.Columns.Add("ChuYuan_YinLiuGuanZhi_0", typeof(string));
            dt.Columns.Add("ChuYuan_YinLiuGuanZhi_1", typeof(string));
            dt.Columns.Add("ChuYuan_YinLiuGuanZhi_2", typeof(string));
            dt.Columns.Add("ChuYuan_YinLiuGuanZhi_3", typeof(string));
            dt.Columns.Add("ChuYuan_YinLiuGuanZhi_4", typeof(string));
            dt.Columns.Add("ChuYuan_YinLiuGuanZhi_5", typeof(string));
            dt.Columns.Add("ChuYuan_YinLiuGuanZhi_6", typeof(string));
            dt.Columns.Add("ChuYuan_YinLiuGuanZhi_7", typeof(string));
            dt.Columns.Add("ChuYuan_YinLiuGuanZhi_8", typeof(string));
            //7、出院带药的用法、注意事项。
            dt.Columns.Add("ChuYuan_ChuYuanDaiYao_0", typeof(string));
            dt.Columns.Add("ChuYuan_ChuYuanDaiYao_1", typeof(string));
            dt.Columns.Add("ChuYuan_ChuYuanDaiYao_2", typeof(string));
            dt.Columns.Add("ChuYuan_ChuYuanDaiYao_3", typeof(string));
            dt.Columns.Add("ChuYuan_ChuYuanDaiYao_4", typeof(string));
            dt.Columns.Add("ChuYuan_ChuYuanDaiYao_5", typeof(string));
            dt.Columns.Add("ChuYuan_ChuYuanDaiYao_6", typeof(string));
            dt.Columns.Add("ChuYuan_ChuYuanDaiYao_7", typeof(string));
            dt.Columns.Add("ChuYuan_ChuYuanDaiYao_8", typeof(string));
            //8、告知随访时间及随访的重要性。
            dt.Columns.Add("ChuYuan_GaoZhiSuiFang_0", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiSuiFang_1", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiSuiFang_2", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiSuiFang_3", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiSuiFang_4", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiSuiFang_5", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiSuiFang_6", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiSuiFang_7", typeof(string));
            dt.Columns.Add("ChuYuan_GaoZhiSuiFang_8", typeof(string));
            //9、按期预防接种和儿保体检。 
            dt.Columns.Add("ChuYuan_AnQiYuFang_0", typeof(string));
            dt.Columns.Add("ChuYuan_AnQiYuFang_1", typeof(string));
            dt.Columns.Add("ChuYuan_AnQiYuFang_2", typeof(string));
            dt.Columns.Add("ChuYuan_AnQiYuFang_3", typeof(string));
            dt.Columns.Add("ChuYuan_AnQiYuFang_4", typeof(string));
            dt.Columns.Add("ChuYuan_AnQiYuFang_5", typeof(string));
            dt.Columns.Add("ChuYuan_AnQiYuFang_6", typeof(string));
            dt.Columns.Add("ChuYuan_AnQiYuFang_7", typeof(string));
            dt.Columns.Add("ChuYuan_AnQiYuFang_8", typeof(string));
            #endregion

        }
        #endregion

        private void PrintHealthEducationRSFNU_Load(object sender, EventArgs e)
        {
            axGRPrintViewer1.Start();
        }

    }
}
